﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoreGallery.Addins.Contracts
{
    public class MetadataElement
    {
        string _name, _value;
        long _id;

        public MetadataElement(long propertyId, string propertyValue)
        {
            _id = propertyId;
            _value = propertyValue;
        }

        public MetadataElement(string propertyName, string propertyValue)
        {
            _name = propertyName;
            _value = propertyValue;
        }

        string PropertyDisplayName
        {
            get{ return _name;}
        }

        long PropertyId
        {
            get{ return _id;}
            set{_id = value;}
        }

        // TODO: Expose overloads for string, long, byte[], array of values -- setting and getting
        string PropertyValue
        {
            get{ return _value;}
            set{_value = value;}
        }
    }
}
